import request from '@/utils/request'

// 分页获取订单列表
export const getTopicList = ({
  pageNo,
  pageSize,
  caseId
}) => {
  return request({
    url: '/business/topical/list',
    method: 'get',
    params: {
      pageNo,
      pageSize,
      caseId
    }
  })
}

export const addTopic = (data) => {
  return request({
    url: '/business/topical/create',
    method: 'post',
    data: data
  })
}

export const modifyTopic = (data) => {
  return request({
    url: '/business/topical/update',
    method: 'post',
    data: data
  })
}

export const delTopics = (modelIds) => {
  return request({
    url: `/business/topical/${modelIds}`,
    method: 'delete'
  })
}


